import { defineMock } from '@alova/mock';
import { createMock } from '@/mock/utils';
const lunbo1= 'http://www.chaojikaoyan.com/images/images/lunbo1.png'
import {shopList,informationList } from '@/pages/home/home.ts';
const createRandomSwiper = () => {
	return [
		{
			image: lunbo1,
			title: "",
		},
		{
			image: lunbo1,
			title: "",
		},
		{
			image: lunbo1,
			title: "",
		},
	]
};
export const homeMocks = defineMock({
	//获取轮播图
	'[GET]/api/v1/home/getSwiperList': (params) => {
		return createMock({ data: createRandomSwiper() });
	},
	//获取轮播图
	'[GET]/api/v1/home/getInformationList': (params) => {
		return createMock({ data: informationList });
	},
	//获取推荐商品
	'[GET]/api/v1/home/getHomeShopList': (params) => {
		return createMock({ data:shopList });
	},
});